var yiru=document.querySelector("#yiru");
var yichu=document.querySelector("#yichu");
yiru.addEventListener("mouseover",function(){
    yichu.style.display="block";
});
yiru.addEventListener("mouseleave",function(){
    yichu.style.display="none";
});
yichu.addEventListener("mouseover",function(){
    yichu.style.display="block";
});
yichu.addEventListener("mouseleave",function(){
    yichu.style.display="none";
});


var yiru1=document.querySelector("#yiru1");
var yichu1=document.querySelector("#yichu1");
yiru1.addEventListener("mouseover",function(){
    yichu1.style.display="block";
});
yiru1.addEventListener("mouseleave",function(){
    yichu1.style.display="none";
});
yichu1.addEventListener("mouseover",function(){
    yichu1.style.display="block";
});
yichu1.addEventListener("mouseleave",function(){
    yichu1.style.display="none";
});

var btn=document.querySelector('#bot');
var shou=document.querySelector('#shou');
var num=1;
btn.onclick=function(){
    if(num==1){
        shou.style.display='none';
        num=0;
    }else{
        shou.style.display='block';
        num=1;
    }
};

var yin=document.querySelector("#yin");
var yin1=document.querySelector("#yin1");
yin.addEventListener("mouseover",function(){
    yin.style.bottom="-20px";
    yin1.style.display="none";
});
yin.addEventListener("mouseleave",function(){
    yin.style.bottom="-150px";
    yin1.style.display="block";
});
Totop.addEventListener('click',function(){
    window.scrollTo(0,0);
    //window.scrollTo({
    //    top:0,
    //    behavior:'smooth'
    //})
});
